PDF4Java Reference Documentation
com.o2sol.pdf4java.pdffunctions Package / PDFSampleFunction Class / PDFSampleFunction Constructor / PDFSampleFunction Constructor(int[],int,PDFSampleFunctionInterpolationMode,double[],double[],byte[])
An array of m positive integers specifying the number of samples in each input dimension of the sample table.
The number of bits used to represent each sample.
The interpolation mode between samples.
An array of 2 x m numbers specifying the linear mapping of input values into the domain of the function's sample table.
An array of 2 x n numbers specifying the linear mapping of sample values into the range appropriate for the function's output values.
Sample function data.
In This Topic
    PDFSampleFunction Constructor(int[],int,PDFSampleFunctionInterpolationMode,double[],double[],byte[])
    In This Topic
    Initializes a new PDFSampleFunction object with the specified COS function.
    Syntax
    public PDFSampleFunction( 
       int[] size,
       int bitsPerSample,
       PDFSampleFunctionInterpolationMode interpolationMode,
       double[] encode,
       double[] decode,
       byte[] samples
    )

    Parameters

    size
    An array of m positive integers specifying the number of samples in each input dimension of the sample table.
    bitsPerSample
    The number of bits used to represent each sample.
    interpolationMode
    The interpolation mode between samples.
    encode
    An array of 2 x m numbers specifying the linear mapping of input values into the domain of the function's sample table.
    decode
    An array of 2 x n numbers specifying the linear mapping of sample values into the range appropriate for the function's output values.
    samples
    Sample function data.
    See Also